\documentclass{article}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{xcolor}

\usepackage{fontspec}
\usepackage{xcolor}
\setmonofont{JetBrains Mono}[
    Contextuals = Alternate,
    Ligatures = TeX,
]

\lstset{
%   basicstyle = \sffamily,
%   keywordstyle = \bfseries,
%   commentstyle = \color{olive}\ttfamily,
%   keywordstyle = \color{blue!70}\bfseries,
  basicstyle = \ttfamily,
  columns = flexible,
  flexiblecolumns,
  numbers = left,
  showspaces = false,
  showstringspaces = false,
  captionpos = top,
  %frame = lrtb,
  frame = shadowbox,
}


\begin{document}
\title{Type Conversion in C++}
\author{Dandelight}
%\address{Sichuan University}
\date{2021/01/06}
\bibliographystyle{plain}

\maketitle
\begin{center}
  \texttt{guoruiming@stu.scu.edu.cn}
\end{center}

\lstinputlisting[
  language = C++,
]{code/smain8_4.cpp}


\begin{lstlisting}[
  language = C++,
]
#include <iostream>
\end{lstlisting}

\end{document}

\bibliography{ml}
